package com.example.function.sys.model.one;


import lombok.Data;
import org.springframework.context.annotation.Lazy;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Description: <SysSupplier vo>. <br>
 * 供应商基本信息
 * generate time:2021-7-22 11:07:56
 *
 * @author hanqf
 * @version V1.0
 */
@Data
@Entity
@Table(name = "tbl_sys_supplier", schema = "csms_db")
@Lazy(value = true)
public class SysSupplier implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 供应商id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "supplier_id")
    private Long id;


    /*
     * 登录用户id
     */
    @Column(name = "user_id_fk")
    private Long userIdFk;


    /*
     * 供应商代码，00001，00002
     */
    @Column(name = "supplier_code")
    private String supplierCode;


    /*
     * 供应商类型id
     */
    @Column(name = "supplier_type_fk")
    private Long supplierTypeFk;


    /*
     * 固定电话
     */
    @Column(name = "supplier_call")
    private String supplierCall;


    /*
     * 联系人
     */
    @Column(name = "supplier_contacts")
    private String supplierContacts;


    /*
     * 上级供应商id
     */
    @Column(name = "supplier_parent_id")
    private Integer supplierParentId;


}



